import urllib.request as rep

url = "https://www.baidu.com/"
file = rep.urlopen(url)
print(file.headers)
